#include <iostream>
#include <thread>
#include <chrono>
#include <unistd.h>

#include "c2sum.h"

int main()
{
    std::cout << "hello world\n";
    int n = 100;
    int s = 0;
    while (n > 0)
    {
        sleep(1);
        std::cout << "n=" << n << "\n";
        n--;
        s = sum(s, n);
    }
    std::cout << "app end\n";
    return 0;
}